package com.bwie.house.service.impl;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.house.dao.CellDao;
import com.bwie.house.entity.CellEntity;
import com.bwie.house.service.CellService;


@Service("cellService")
public class CellServiceImpl extends ServiceImpl<CellDao, CellEntity> implements CellService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        QueryWrapper<CellEntity> w = new QueryWrapper<>();


        IPage<CellEntity> page = this.page(
                new Query<CellEntity>().getPage(params),
                w
        );

        return new PageUtils(page);
    }

}